﻿
using System;
using System.Linq;
using System.Text;

using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace Oliving.Edge.Model.Dto.WY
{
    ///<summary>
    ///
    ///</summary> 

    [Serializable]
    public class WY_CompanyDto
    {
        public WY_CompanyDto()
        {
        }




        #region Child 字段 

        public List<WY_CompanyDto> children { get; set; } = new List<WY_CompanyDto>();

        //public bool hasChildren { get { return children.Count > 0; } }

        #endregion

        #region 公司


        /// <summary> 
        /// Desc:主键 
        /// Default: 
        /// Nullable:False 
        /// </summary> 

        public string Id { get; set; }

        /// <summary> 
        /// Desc:公司名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "公司名称不能为空,内存长度超出 范围")]
        public string CompanyName { get; set; }

        /// <summary> 
        /// Desc:母公司 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        //[StringLength(100, MinimumLength = 1, ErrorMessage = "母公司不能为空,内存长度超出 范围")]
        public string CompanyPid { get; set; }

        /// <summary> 
        /// Desc:地址 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "地址不能为空,内存长度超出 范围")]
        public string Address { get; set; }

        /// <summary> 
        /// Desc:联系电话 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "联系电话不能为空,内存长度超出 范围")]
        public string Telephone { get; set; }

        /// <summary> 
        /// Desc:公司简介 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "公司简介不能为空,内存长度超出 范围")]
        public string CompanyProfile { get; set; }

        /// <summary> 
        /// Desc:公司网站 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "公司网站不能为空,内存长度超出 范围")]
        public string CompanyWebsite { get; set; }

        /// <summary> 
        /// Desc:纬度 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "纬度不能为空,内存长度超出 范围")]
        public string Lat { get; set; }

        /// <summary> 
        /// Desc:经度 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "经度不能为空,内存长度超出 范围")]
        public string Lng { get; set; }




        #endregion

        #region MyRegion

        /// <summary> 
        /// Desc:排序码--------------------------- 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public int SortCode { get; set; }

        /// <summary> 
        /// Desc:删除标记 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public int DeleteMark { get; set; }

        /// <summary> 
        /// Desc:有效标志 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public int EnabledMark { get; set; }

        /// <summary> 
        /// Desc:创建日期 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public DateTime? CreateDate { get; set; }

        /// <summary> 
        /// Desc:创建用户主键 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "创建用户主键不能为空,内存长度超出 范围")]
        public string CreateUserId { get; set; }

        /// <summary> 
        /// Desc:创建用户 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "创建用户不能为空,内存长度超出 范围")]
        public string CreateUserName { get; set; }

        /// <summary> 
        /// Desc:修改日期 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public DateTime? ModifyDate { get; set; }

        /// <summary> 
        /// Desc:修改用户主键 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "修改用户主键不能为空,内存长度超出 范围")]
        public string ModifyUserId { get; set; }

        /// <summary> 
        /// Desc:修改用户 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(100, MinimumLength = 1, ErrorMessage = "修改用户不能为空,内存长度超出 范围")]
        public string ModifyUserName { get; set; }


        #endregion




    }

}
